import { ecs } from "db://oops-framework/libs/ecs/ECS";
import { BookModelComp } from "./model/BookModelComp";

@ecs.register('Book')
export class Book extends ecs.Entity {
    // 数据层
    BookModel!: BookModelComp;

    protected init() {
        this.addComponents<ecs.Comp>(
            BookModelComp);

        this.BookModel.vmAdd();
    }

    destroy(): void {
        super.destroy();
    }
}

export class EcsBookSystem extends ecs.System {
    constructor() {
        super();

        // this.add(new BookStarReceiveSystem());
        // this.add(new BookStarUpgradeSystem());
        // this.add(new BookLoadRewardsSystem());
    }
}